package com.ui.basic.security.assembler;

import com.ui.basic.ibatis.model.system.TblSUser;
import com.ui.basic.security.domain.UserSecurity;

public abstract class UserSecurityAssembler {
	
	public static UserSecurity toUserSecurity(TblSUser user){
		if(user==null)return null;
		UserSecurity userSecurity = new UserSecurity();
		userSecurity.setId(user.getId());
		userSecurity.setUsername(user.getUsername());
		userSecurity.setPassword(user.getPassword());
		userSecurity.setRoleId(user.getRoleId());
		
		return userSecurity;
	}
}
